<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Student Grades</title>
</head>
<body>
    <h1>Student Grades Report</h1>
    <table border="1">
        <tr>
            <th>Student ID</th>
            <th>Total Score</th>
            <th>Average Score</th>
        </tr>
        {% for student_id, data in student_grades.items() %}
        <tr>
            <td>{{ student_id }}</td>
            <td>{{ data.total }}</td>
            <td>{{ data.average }}</td>
        </tr>
        {% endfor %}
    </table>
</body>
</html>
